<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Auth::routes();
Route::post('my_send','Index\BaseController@my_send');//发送验证码
Route::group(['namespace'=>'Index','middleware'=>'auth'],function($route){
    $route->get('/','IndexController@index');//首页
    $route->get('index','IndexController@index');//首页
    $route->get('my','MyController@my');//我的
    $route->match(['get','post'],'editPassword','MyController@editPassword');//修改密码
    $route->match(['get','post'],'setAccount','MyController@setAccount');//设置账号
    $route->post('isSetAccount/{id}','MyController@isSetAccount');//查询是否设置账号
    $route->match(['get','post'],'currSet','MyController@currSet');//币种设置
    $route->post('selectCurr','MyController@selectCurr');//查询币种
    $route->match(['get','post'],'pay','MyController@pay');//预付金支付
    $route->get('refund','MyController@refund');//退款记录
    $route->get('code','MyController@code');//我的代理
    $route->match(['get','post'],'profitLoss','MyController@profitLoss');//盈亏状态
    $route->post('selUsername','MyController@selUsername');//查询账号
    $route->post('currBalance','MyController@currBalance');//查询币种数量 折合usdt
    $route->post('selCurr','IndexController@selCurr');//根据交易所查询币种
    $route->get('orderLog/{ex}/{curr}','IndexController@orderLog');//查询交易记录
    $route->post('configParam','MyController@configParam');//查询参数

    //火币接口
    $route->get('price','HbApiController@price');//价格接口

    $route->any('bus','HbApiController@bus');//点击开始和停止

});

